﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bridge.Square
{
    public  class Square : Shape
    {
        int x, y, width, heigth;
        public Square(int x, int y, int width, int heigth, Interface.DrawAPI drawAPI)
            : base(drawAPI)
        {
            this.x = x;
            this.y = y;
            this.width = width;
            this.heigth = heigth;
        }

        public override void Draw()
        {
            drawAPI.DrawSquare(x, y, width, heigth);
        }
    }
}
